﻿using UnityEngine;
using System.Collections;
using System.Threading;

public class AniEffectComplete : AniEffectC {

	protected OReportDetail detail;

	protected CallBack complete;

	public override void play (OReportDetail detail, CallBack complete) {
		this.detail = detail;
		this.complete = complete;
	}

	public virtual void playComplete() {
		if(complete != null) {
			complete();
			complete = null;
		}

		if(gameObject!=null) {
			Destroy(gameObject);
		}
	}
}
